package com.smasher.dialog.bottomsheet;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;

import com.smasher.dialog.R;
import com.smasher.widget.base.BaseRecyclerAdapter;

/**
 * @author HXZ_Android
 */
public class DialogBottomSheetAdapter extends BaseRecyclerAdapter<BeanDialogItem, DialogBottomSheetViewHolder> {
    public DialogBottomSheetAdapter() {
        super();
    }

    @Override
    public DialogBottomSheetViewHolder onCreateDefineViewHolder(@NonNull ViewGroup viewGroup, int i) {
        View view = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.item_bottom_sheet_list, viewGroup, false);
        return new DialogBottomSheetViewHolder(view);
    }
}
